import exp from 'constants'

export type RejectInfo = {
  auditDetail: string
  auditDetailType: string
  id: number

  auditDetailTypeTemp: string[]
}

export type ApplyInfo = {
  accountNumber: string
  applicantMobile: string
  auditDetail: string
  auditDetailType: string
  auditStatus: number | 1 | 2 //number : 待审核 1 ：审核通过 2 ：驳回
  bankCorporateName: string
  bankLicenseCopyUrl: string
  bankName: string
  cardPeriodBegin: string
  cardPeriodEnd: string
  corporateName: string
  documentType: string
  idCardCopyUrl: string
  idCardHoldUrl: string
  idCardName: string
  idCardNationalUrl: string
  idCardNumber: string
  legalPerson: string
  licenseAddress: string
  licenseBegin: string
  licenseCity: string
  licenseCopyUrl: string
  licenseDistrict: string
  licenseEnd: string
  licenseNumber: string
  licenseProvince: string
  presidentAccountNumber: string
  presidentBankLegalPerson: string
  presidentBankName: string
  bankAccountType: number
}

export type WithdrawDetail = {
  isForceComplete: number
  amount: number
  checkRejectTime: string
  checkTime: string
  id: number
  invoiceType: number | 1 | 2 //number-电子，1-纸质，2-电子/纸质
  invoices: string
  isPay: number | 1 //,number-否,1-是
  logisticCode: string
  logisticComment: string
  logisticNo: string
  purchaserName: string
  status: 1 | 2 | 4 | 5 | 6 //4-待审核,2-发票待签收,6-发票已签收,5-审核通过,1-驳回
  submitTime: string
  trace: string
  withdrawDate: string
  comments: string
  rejectReason: string //驳回理由
  rejectTitle: string //	驳回类型
  invoiceList: {
    id: number
    image: string
    isError: number //是否有问题,0-否,1-是
  }[]
}

export type WithdrawRejectReq = {
  id: number
  invoiceIds: any[]
  rejectReason: string
  rejectTitle: string

  rejectTitleTemp: any[]
}

export type ExpressInfo = {
  id: number
  receiveAddress: string
  receiveCity: string
  receiveDistrict: string
  receiveName: string
  receivePhone: string
  receiveProvince: string

  addressTemp: string[]
}

export type BaseInfoDetail = {
  accountName: string
  accountNumber: string
  applicantMobile: string
  auditStatus: number
  bankAccountNo: string
  bankName: string
  combatTeam: string
  companyShortname: string
  corporateName: string
  funame: string
  groupNumber: number
  id: number
  idCardNumber: string
  legalPerson: string
  licenseNumber: string
  manageSalesCompanCount: number
  memoOne: string
  memoThree: string
  memoTwo: string
  mobile: string
  mostManageCompanCnt: number
  overquotaOrNot: string
  parentId: number
  parentName: string
  phone: string
  positionLevel: number
  presidentStarRating: number | 1 | 2 | 3 | 4 | 5
  registerAddress: string
  salesCompanAccountName: string
  salesCompanBankBranchName: string
  salesCompanLeaderId: number
  salesCompanLeaderMobile: string
  salesCompanLeaderName: string
  salesCompanStatus: number
  serviceProviderId: number
  serviceProviderLevel: number
  serviceProviderType: number
  shopLic: string
  status: number
  subjectTime: string
  wid: number
}

export type ServiceData = {
  fivePresident: number
  fourPresident: number
  id: number
  officialServer: number
  officialServerIncomeConfig: number
  onePresident: number
  presidentIncomeCofig: number
  reserveServer: number
  reserveServerIncomeConfig: number
  statementGenerationDay: number
  threePresident: number
  twoPresident: number
  uploadInvoiceEndTime: string
  uploadInvoiceOpenTime: string
  zeroPresident: number
}
export type ServiceDataConfig = {
  bigNameAreaOutsourcingFeesRate: number
  bigNameAreaSettlementTotalFeesRate: number
  brandSelectionOutsourcingFeesRate: number
  brandSelectionTotalFeesRate: number
  groupAreaOutsourcingFeesRate: number
  groupAreaSettlementTotalFeesRate: number
  id: number
  globalIsShow: boolean
}
export type selectDivision = {
  businessDivisionId: number
}
export type ChooseDivisionItem = {
  memberId: number | string
  businessDivisionName: string //事业部角色名称
  businessDivisionPrincipalName: string //事业部负责人
  subordinateGroupNumber: string //下辖群号
}
export type addDivisionItem = {
  subordinateGroupNumber: string
  businessDivisionName: string
  newMemberId: number | string
  subordinateGroupNumberList: any
  memberId: number | string
  businessDivisionId: string
  businessDivisionPrincipalName: string //	事业部负责人
}
// 事业部查询
export type PrincipalName = {
  newMemberId: number | string //新增事业部负责人id
  businessDivisionPrincipalName: string //	事业部负责人
  phone //	手机号
  headOfficeName: string
}
export type editListItem = {
  businessDivisionId: number //	事业部id
  businessDivisionName: string //	事业部名称
  memberId: number | string
  newMemberId: number | string //	新负责人的memberId
  subordinateGroupNumberList: string //	下辖群号列表
}
export type getList = {
  businessDivisionId: number
  businessDivisionName: string
  businessDivisionPrincipalName: string
  createTime: string
  createUser: string
  memberId: number
  phone: string
  subordinateGroupNumber: string
}
export type importOrders = {
  falseRow: any
  successRow: any
}
export type addHeadOfficeItem = {
  subordinateBusinessDivsionGroup: any
  roleName: string //	总部角色名称
  newMemberId: number | string //
  subordinateBusinessDivisionIdList: any //下辖事业部ID
  headOfficeId: number //总部ID
  headOfHeadQuarters: string //总部负责人
  memberId: number | string //
  subordinateBusinessDivsionGroupId: number
  businessDivisionName: string
}
export type editHeadOffice = {
  subordinateBusinessDivisionIdList: any
  headOfficeId: number
  businessDivisionName: string
  roleName: string //总部角色名称
  memberId: number | string //用户id
  headOfHeadQuarters: string //	总部负责人
  subordinateBusinessDivsionGroup: string //下辖事业部
  subordinateBusinessDivsionGroupId: number
}
